<template>
  <label class="checkbxo-label">
    <input @click="setIsCheckedAll" :checked="isCheckedAll" type="checkbox" />全选
  </label>
</template>

<script>
export default {
  name: 'CheckedAll',
  props: {
    'setIsCheckedAll': {
      type: Function,
      required: true
    },
    'isCheckedAll': {
      type: Boolean,
      required: true
    }
  }
}
</script>

<style lang='scss'>
.checkbxo-label{
    display: flex;
    align-items: center;
    cursor: pointer;
    input[type='checkbox']{
        height: 16px;
        width: 16px;
        cursor: pointer;
    }
}
</style>
